home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16405 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.seanet.com!usenet!not-for-mail
  2. From: banshee@seanet.com (James Moore)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
  4. Subject: Re: Controls in non-dialog (mfc)
  5. Date: 10 Apr 1996 11:49:57 -0700
  6. Organization: Seanet Online Services, Seattle WA
  7. Message-ID: <4kgvsl$sd6@kisa.seanet.com>
  8. References: <4js2mv$sk6@news.icubed.com>
  9. NNTP-Posting-Host: kisa.seanet.com
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. sj2393@ansys.com (Steve Jones) writes:
  13.  
  14. >How in MFC does one go about embedding a control within a
  15. >window that is not a dialog box?
  16.  
  17. You're doing the right thing - you shouldn't have to do anything other
  18. than call Create ().
  19.  
  20. Double-check a few things:
  21.  
  22. 0.  Is Create () returning TRUE?
  23.  
  24. 1.  Are you including WS_VISIBLE in your Create () call?
  25.  
  26. 2.  Make sure pParentWnd in the Create () call points to the right
  27. window.
  28.  
  29. 3.  Make sure the size rect is reasonable, and that the location of
  30. the control is inside the visible window.
  31.  
  32. 4.  Use Spy to see your window tree, which will include the new
  33. control.  If it's going somewhere weird, this should help you find it.
  34.  
  35. -- 
  36.                  James Moore
  37.              banshee@banshee.com
  38.         http://www.seanet.com/Users/banshee/index.html
  39.